package com.huawei.appmarket.service.settings.card;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant.KeyAndValue;
import o.cgz;
import o.ckt;
import o.der;
import o.der.b;
import o.der.f;
import o.dge.d;
import o.dgh;
import o.egu;
import o.egu.a;
import o.eqp;

public class SettingContentRestrictCard extends BaseSettingCard {
    private Context ˊ;
    private String ˋ = UserSession.getInstance().getUserId();
    private String ˎ = eqp.ॱ();
    private TextView ˏ;
    private OnClickListener ॱ = new OnClickListener(this) {
        final /* synthetic */ SettingContentRestrictCard ˋ;

        {
            this.ˋ = r1;
        }

        public void onClick(View view) {
            dgh.onEvent(new d(this.ˋ.ˊ, f.ʼˋ).ˏ(KeyAndValue.NUMBER_01 + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + this.ˋ.ˋ + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + this.ˋ.ˎ).ˋ());
            this.ˋ.ˋ();
        }
    };

    public SettingContentRestrictCard(Context context) {
        super(context);
        this.ˊ = context;
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        this.ˏ = (TextView) view.findViewById(der.d.ʽʽ);
        this.ˏ.setVisibility(8);
        view.findViewById(der.d.ʽʻ).setVisibility(8);
        view.findViewById(der.d.ʿˊ).setMinimumHeight(this.ʼॱ.getResources().getDimensionPixelSize(b.ˊ));
        ((TextView) view.findViewById(der.d.ʽʼ)).setText(f.ˌॱ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        this.ˊˋ.setOnClickListener(new ckt(this.ॱ));
    }

    private void ˋ() {
        a aVar = new a();
        aVar.ˋ(this.ˊ.getString(f.ʾ));
        aVar.ॱ(this.ˊ.getPackageName());
        egu.ˎ(this.ˊ, aVar);
    }
}
